﻿<%@ Page Language="C#"  MasterPageFile="~/MasterPages/MasterPage.master"
    AutoEventWireup="true" CodeFile="WebUser.aspx.cs" Inherits="WebUser" Title="WebUser List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContent" runat="Server">
    Web User List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentContent" runat="Server">
    <data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1"
        PersistenceMethod="Session" />
    <br />
    <div class="table">
        <data:EntityGridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
            DataSourceID="WebUserDataSource" DataKeyNames="UserId" AllowMultiColumnSorting="false"
            DefaultSortColumnName="" DefaultSortDirection="Ascending" ExcelExportFileName="Export_WebUser.xls">
            <Columns>
                <asp:CommandField ShowSelectButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="UserId" HeaderText="User Id" SortExpression="[UserId]"
                    ReadOnly="True" />
                <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="[Name]" />
                <asp:BoundField DataField="Password" HeaderText="Password" SortExpression="[Password]" />
                <asp:BoundField DataField="Roles" HeaderText="Roles" SortExpression="[Roles]" />
                <asp:BoundField DataField="Location" HeaderText="Location" SortExpression="[Location]" />
                <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="[Email]" />
                <asp:BoundField DataField="Remark" HeaderText="Remark" SortExpression="[Remark]" />
            </Columns>
            <EmptyDataTemplate>
                <b>No WebUser Found!</b>
            </EmptyDataTemplate>
        </data:EntityGridView>
    </div>
    <br />
    <asp:Button runat="server" ID="btnWebUser" OnClientClick="javascript:location.href='WebUserEdit.aspx'; return false;"
        Text="Add New"></asp:Button>
    <data:WebUserDataSource ID="WebUserDataSource" runat="server" SelectMethod="GetPaged"
        EnablePaging="True" EnableSorting="True">
        <Parameters>
            <data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
            <data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
            <asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex"
                Type="Int32" />
            <asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize"
                Type="Int32" />
            <data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
        </Parameters>
    </data:WebUserDataSource>
</asp:Content>
